package com.gutsyzhan.bilibili.service.impl;

import com.gutsyzhan.bilibili.dao.UserCoinDao;
import com.gutsyzhan.bilibili.service.UserCoinService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserCoinServiceImpl implements UserCoinService {
    @Resource
    private UserCoinDao userCoinDao;

    @Override
    public Long getUserCoinsAmount(Long userId) {
        return userCoinDao.getUserCoinsAmount(userId);
    }

    @Override
    public void updateUserCoinsAmount(Long userId, Long amount) {
        userCoinDao.updateUserCoinsAmount(userId, amount);
    }
}
